package com.study.bean

/**
 *
 * @version 1.0
 * @author study
 * @date 2020/8/20 21:51
 *
 */
class Student(val name: String) {
  def sayHello() = {
    println(name)
  }


}

object Student {
  def main(args: Array[String]): Unit = {
    val person = new Person("测试")
    val student = new Student("学生")
    student.sayHello()
    println(person)

  }
}

case class Person(var name: String)
